package com.example.demoorder.bizservice.feignservice.fallback;

import com.alibaba.fastjson.JSONObject;
import com.alispring.cloud.demo.entity.User;
import com.example.demoorder.bizservice.feignservice.FeignService;
import org.springframework.stereotype.Service;

/**
 * 熔断处理
 */
@Service
public class FeignServiceFallBack implements FeignService {
    public JSONObject get() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("demo-order", "fallback");
        return jsonObject;
    }

    public User getUser() {
        return null;
    }
}
